ProteusClientCryptoBoxImpl

class ProteusClientCryptoBoxImpl(rootDir: String) : ProteusClient

Constructors

Link copied to clipboard
constructor(rootDir: String)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun close()
Link copied to clipboard
open suspend override fun createSession(preKeyCrypto: PreKeyCrypto, sessionId: CryptoSessionId)
Link copied to clipboard
suspend fun ProteusClient.createSessions(preKeysCrypto: Map<String, Map<String, Map<String, PreKeyCrypto>>>)
Link copied to clipboard
open suspend override fun <T : Any> decrypt(message: ByteArray, sessionId: CryptoSessionId, handleDecryptedMessage: suspend (decryptedMessage: ByteArray) -> T): T

Decrypts a message. In case of success, calls handleDecryptedMessage with the decrypted bytes.

Link copied to clipboard
open suspend override fun deleteSession(sessionId: CryptoSessionId)
Link copied to clipboard
open suspend override fun doesSessionExist(sessionId: CryptoSessionId): Boolean
Link copied to clipboard
open suspend override fun encrypt(message: ByteArray, sessionId: CryptoSessionId): ByteArray
Link copied to clipboard
open suspend override fun encryptBatched(message: ByteArray, sessionIds: List<CryptoSessionId>): Map<CryptoSessionId, ByteArray>
Link copied to clipboard
open suspend override fun encryptWithPreKey(message: ByteArray, preKeyCrypto: PreKeyCrypto, sessionId: CryptoSessionId): ByteArray
Link copied to clipboard
open suspend override fun getFingerprintFromPreKey(preKey: PreKeyCrypto): ByteArray
Link copied to clipboard
open override fun getIdentity(): ByteArray
Link copied to clipboard
open suspend override fun getLocalFingerprint(): ByteArray
Link copied to clipboard
open suspend override fun newLastResortPreKey(): PreKeyCrypto
Link copied to clipboard
open suspend override fun newPreKeys(from: Int, count: Int): <Error class: unknown class><PreKeyCrypto>
Link copied to clipboard
Link copied to clipboard
open suspend override fun remoteFingerPrint(sessionId: CryptoSessionId): ByteArray